import request from '@/utils/request'

// 查询就诊总览列表
export function listBeYyyTreatment(query) {
  return request({
    url: '/behindTreatment/beYyyTreatment/list',
    method: 'get',
    params: query
  })
}

// 查询就诊总览详细
export function getBeYyyTreatment(treatId) {
  return request({
    url: '/behindTreatment/beYyyTreatment/' + treatId,
    method: 'get'
  })
}

// 新增就诊总览
export function addBeYyyTreatment(data) {
  return request({
    url: '/behindTreatment/beYyyTreatment',
    method: 'post',
    data: data
  })
}

// 修改就诊总览
export function updateBeYyyTreatment(data) {
  return request({
    url: '/behindTreatment/beYyyTreatment',
    method: 'put',
    data: data
  })
}

// 删除就诊总览
export function delBeYyyTreatment(treatId) {
  return request({
    url: '/behindTreatment/beYyyTreatment/' + treatId,
    method: 'delete'
  })
}
